package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.ItemCartypeMapper;
import com.whq.entity.ItemCartype;
import com.whq.service.ItemCartypeService;

@Service(value = "tdItemCartypeService")
public class ItemCartypeServiceImpl implements ItemCartypeService {

    @Autowired
    private ItemCartypeMapper<ItemCartype>tdItemCartypeMapper;
    
    @Override
    public Integer insertSelective(ItemCartype tdItemCartype) throws Exception {
           return this.tdItemCartypeMapper.insertSelective(tdItemCartype);
        }

    @Override
    public Integer insertBatch(List<ItemCartype> tdItemCartype) throws Exception {
           return this.tdItemCartypeMapper.insertBatch(tdItemCartype) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdItemCartypeMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdItemCartypeMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ItemCartype tdItemCartype) {
           return this.tdItemCartypeMapper.updateByPrimaryKeySelective(tdItemCartype);
    }

    @Override
    public ItemCartype findById(Object id) {
           return (ItemCartype) this.tdItemCartypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ItemCartype> selectByCondition(ItemCartype tdItemCartype) {
           return (List<ItemCartype>) this.tdItemCartypeMapper.selectByCondition(tdItemCartype);
    }

    @Override
    public Integer selectCountByCondition(ItemCartype tdItemCartype) {
           return  this.tdItemCartypeMapper.selectCountByCondition(tdItemCartype);
    }

}
